package com.mes.schedule.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.BatchSize;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.context.annotation.Lazy;

import com.mes.common.domain.BasicModel;

/***
 * @author cswen
 * @Time 2017/3/15
 */

@Entity
@org.hibernate.annotations.Entity(dynamicInsert=false,dynamicUpdate=false)
@Table(name = "T_SCHEDULE_EQUIPMENT")
@BatchSize(size=20)
@Lazy(value=true)
public class ScheduleEquipment  extends BasicModel implements Serializable{
	private static final long serialVersionUID = 1L;
	
	@Id
	@GenericGenerator(name="uniqueId", strategy="assigned")
	@Column(name = "UNIQUEID")
	private String uniqueId;
	
	@Column(name = "STARTTIME")
	private Date startTime;
	
	@Column(name = "FINISHTIME")
	private Date finishTime;
	
	@Column(name = "SHIFT1_WORKER")
	private String shift1_Worker;
	
	@Column(name = "SHIFT2_WORKER")
	private String shift2_Worker;
	
	@Column(name = "SHIFT3_WORKER")
	private String shift3_Worker;

	public String getUniqueId() {
		return this.uniqueId;
	}
	
	public void setUniqueId(String uniqueId) {
		this.uniqueId = uniqueId;
	}
	
	public Date getStartTime() {
		return this.startTime;
	}
	
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	
	public Date getFinishTime() {
		return this.finishTime;
	}
	
	public void setFinishTime(Date finishTime) {
		this.finishTime = finishTime;
	}
	
	
	public String getShift1_Worker() {
		return this.shift1_Worker;
	}
	
	public void setShift1_Worker(String shift1_Worker) {
		this.shift1_Worker = shift1_Worker;
	}
	
	public String getShift2_Worker() {
		return this.shift2_Worker;
	}
	
	public void setShift2_Worker(String shift2_Worker) {
		this.shift2_Worker = shift2_Worker;
	}

	public String getShift3_Worker() {
		return this.shift3_Worker;
	}
	
	public void setShift3_Worker(String shift3_Worker) {
		this.shift3_Worker = shift3_Worker;
	}
}
